package com.demo;

public class yichang {
    public static void main(String[] args){
        int a = 11;
        try{
            problem();
        } catch(RuntimeException r){
            System.out.println(r.getMessage());

        } catch(Exception e){
            System.out.println(e.getMessage());
            if(e.getMessage().contains("01")){
                System.out.println("出问题了");
            }else{
                System.out.println("无事发生，皆大欢喜");
            }
        }



    }

    private static void problem() throws Exception {
        throw new Exception("出现问题01");
    }


}
